package com.fpt.group3.service;

import java.util.LinkedList;

import com.fpt.group3.form.TrustRegion;
import com.fpt.group3.service.exception.SystemException;
/**
 * Trust Region Service.
 * @author John Tran
 */
public interface TrustRegionService {

    /**
     * addTrustRegion.
     * @param tr trust region
     * @return success
     * @throws SystemException exception
     */
    boolean addTrustRegion(TrustRegion tr) throws SystemException;

    /**
     * amendTrustRegion.
     * @param tr trust region
     * @return success
     * @throws SystemException exception
     */
    boolean amendTrustRegion(TrustRegion tr) throws SystemException;

    /**
     * changTrustRegionStatus.
     * @param trID trust region ID
     * @param active trust region status
     * @return success
     * @throws SystemException exception
     */
    boolean changTrustRegionStatus(int trID, int active) throws SystemException;

    /**
     * listTrustRegion.
     * @param isActive active trust region status
     * @return success
     * @throws SystemException exception
     */
    LinkedList<TrustRegion> listTrustRegion(boolean isActive)
              throws SystemException;

    /**
     * getRegionIdByName.
     * @param reName trust region name
     * @return region ID
     * @throws SystemException exception
     */
    int getRegionIdByName(String reName) throws SystemException;
}
